<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="master.html" />

<head />

<body>
    <div align="center">
        [ <a href="./">Back</a> ]<br />
        <span>Academical problems</span>:
        <span>${obj.model_title}</span>:
        <span>${obj.title}</span>
    </div>

    <br />

        <table class="sortable maintable" id="problems_table">
            <thead>
            <tr>
                <th id="actions" class="nosort">Actions</th>
                <th id="date">Date</th>
                <th id="topic">Topic</th>
                <th id="test_type">Test type</th>
                <th id="mark_type">Mark type</th>
                <th id="comment">Comment</th>
            </tr>
            </thead>

            <tbody>
            <tr py:for="mark in marks">
                <td>
                    <a href="delete_mark?mark_id=${mark.id}">delete</a>
                </td>
                <td>${mark.date}</td>
                <td>${mark.topic.title}</td>
                <td>${mark.testType.title}</td>
                <td>${mark.markType.title}</td>
                <td>${mark.comment and mark.comment or '-'}</td>
            </tr>
            </tbody>
        </table>
</body>
</html>
